<template>
	<view class="friend">
		<follow-nav :page="friend"></follow-nav>
		<follow-list :list="list"></follow-list>
		<tab></tab>
	</view>
</template>

<script>
	import followNav from "../../components/followNav.vue";
	import tab from "../../components/tab.vue";
	import followList from "../../components/followList.vue";
	export default {
		components:{
			followNav,
			tab,
			followList
		},
		data() {
			return {
				friend:'friend',
				list:[]
			}
		},
		methods: {
			getVideo(){
				uni.request({
					url:"http://localhost:8099/video.json",
					success: (res) => {
						// console.log(res);
						console.log('关注页');
						this.list=res.data.list.slice(3,8);
						console.log(this.list)
					}
				})
			}
		},
		created(){
			this.getVideo();
		}
	}
</script>

<style>
.friend{
	background-color: #000000;
	height: 100%;
	width: 100%;
}
</style>
